<template>
  <div>
    <table  cellspacing="0" border="1" class="hideInTable">
      <tr>
        <td rowspan="3">基本情况</td>
        <td>姓名</td>
        <td><input v-model="persondata.truename"></td>
        <td>性别</td>
        <td><input v-model="persondata.sex"></td>
        <td>民族</td>
        <td><input v-model="persondata.mingz"></td>
        <td>学历</td>
        <td><input v-model="persondata.wenhuan"></td>
      </tr>
      <tr>
        <td>出生年月</td>
        <td><input v-model="persondata.birthday"></td>
        <td>入党时间</td>
        <td><input v-model="persondata.datain"></td>
        <td>所属党支部</td>
        <td colspan="3"><input v-model="dzbname"></td>
      </tr>
      <tr>
        <td>党内职务</td>
        <td colspan="3"><input v-model="persondata.zhiwu"></td>
        <td>行政职务</td>
        <td colspan="3"> <input v-model="persondata.xzzhiwu"></td>
      </tr>
    </table>
  </div>
</template>
<script>
export default {
  props:{
    persondata:{},
  },
  data() {
    return {
      dzbname:'',
    };
  },
  watch:{
    "persondata":{
      handler(){
        if(this.persondata.banzjianshedzbname==""){
          this.dzbname=this.persondata.dzbname;
        }
        else{
          this.dzbname=this.persondata.banzjianshedzbname;
        }
      },
      deep:true
    }
  }
};
</script>

<style scoped>
input{
  width: 100%;
    height: 100%;
    border-style: none;
}


</style>